package com.rock.common.util;

import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;

public class CustomSpringCacheObjectMapper extends ObjectMapper {

	private static final long serialVersionUID = -2253163599689801006L;

	public CustomSpringCacheObjectMapper() {
		configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
		enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL, JsonTypeInfo.As.PROPERTY);
	}
}